<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>btn1</button>
    <button>btn2</button>
    <button>btn3</button>
    <script>
        console.dir(Array);
        // Array.from 将伪数组转变为真数组
        let btnArr = document.querySelectorAll('button');
        console.log(btnArr);
        let arrNew = Array.from(btnArr);
        console.log(arrNew);

        // Array.of将一些列的数值转变为数组
        let arr1 = Array.of(1,5,'frgt',12);
        console.log(arr1);
        // Array.isArray 判断一个数据是否是数组，是数组为true不是数组为false
        console.log(Array.isArray(arr1));
        console.log(Array.isArray(btnArr));

        

    </script>
</body>
</html>